CC = g++ -O3 -march=nocona -m64 -mfpmath=sse -funroll-loops
LIB = -lpthread
OBJECTS = toolsT.o ScanDataT.o pocsT.o P1hilbertT.o P2compactT.o P3aprioriT.o P4fprojectT.o P5nonnegT.o
pocsT: $(OBJECTS)
	$(CC) $(LIB) $(OBJECTS) -o bin/exec/pocs_cbct
toolsT.o: toolsT.cpp pocsT.h ScanDataT.h includesT.h
	$(CC) -c toolsT.cpp
ScanDataT.o: ScanDataT.h ScanDataT.cpp includesT.h
	$(CC) -c ScanDataT.cpp
pocsT.o: pocsT.h pocsT.cpp includesT.h
	$(CC) -c pocsT.cpp
P1hilbertT.o: pocsT.h P1hilbertT.cpp includesT.h
	$(CC) -c P1hilbertT.cpp
P2compactT.o: pocsT.h P2compactT.cpp includesT.h
	$(CC) -c P2compactT.cpp
P3aprioriT.o: pocsT.h P3aprioriT.cpp includesT.h
	$(CC) -c P3aprioriT.cpp
P4fprojectT.o: pocsT.h P4fprojectT.cpp includesT.h
	$(CC) -c P4fprojectT.cpp
P5nonnegT.o: pocsT.h P5nonnegT.cpp includesT.h
	$(CC) -c P5nonnegT.cpp

clean:
	rm *.o bin/exec/pocs_cbct *~
cleanobj:
	rm *.o
